import { request, history, } from "umi";
import { token } from '@/utils'
export const render = (oldRender: Function) => {
  const T = token.getToken()
  if (!T) {
    history.push('/login')
  }
  oldRender()
}

